{extend name="public:layout" /}
{block name='title'}{$circleInfo.circle_name}{/block}
{block name='head'}
<style>
</style>
<script src="//res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    wx.config({$options | json_encode});
    wx.ready(function(){
        var data={
            title: '{$circleInfo.circle_name}', // 分享标题
            desc: '{$circleInfo.circle_desc}', // 分享描述
            link: '{:get_current_url()}', // 分享链接，该链接域名或路径必须与当前页面对应的公众号JS安全域名一致
            imgUrl: '{:empty($circleInfo["circle_img"])?"":strstr("http",$circleInfo["circle_img"])?$circleInfo["circle_img"]:$Request.domain.$circleInfo["circle_img"]}', // 分享图标
            success: function () {
                // 用户确认分享后执行的回调函数
            },
            cancel: function () {
                // 用户取消分享后执行的回调函数
            }
        };
        wx.onMenuShareTimeline(data);
        wx.onMenuShareAppMessage(data);
        wx.onMenuShareQQ(data);
        wx.onMenuShareWeibo(data);
        wx.onMenuShareQZone(data);

    });
</script>
{/block}
{block name="body"}
<div class="circleinfo-head">
</div>
<div class="meeting-info-box">
    <h2 class="meeting-title">
        {$circleInfo.circle_name}
    </h2>
    <div class="meeting-desc">
        {$circleInfo.circle_desc}
    </div>
    <div class="meeting-tag">
        {volist name="circle_tag" id="vo"}
        <span class="tag">{$vo}</span>
        {/volist}
    </div>
</div>
<div class="circle-share-box">
    <div class="row-tit">
        他们已经加入了圈子……
    </div>
    <div class="weui-flex">
        {volist name="circleInfo.member_list" id="vo"}
        <div class="weui-flex__item">
            <div class="user-item">
                <img src="{$vo.member_info.member_avatar}" class="thumb" alt="">
                <div class="name">{$vo.member_info.member_truename}</div>
                <div class="company-name">{$vo.member_info.company_name}</div>
            </div>
        </div>
        {/volist}
    </div>
</div>
<div class="circle-share-box">
    <div class="row-tit">
        他们在圈子里发布了……
    </div>
    <div class="circleinfo-list" >
    {volist name="circleInfo.theme_list" id="vo"}
        <div class="info-item">
            <div class="thumb">
                <a href="javascript:;">
                    <img src="{$vo.member_avatar}" alt="">
                </a>
            </div>
            <div class="infobox">
                <div class="name">
                    <a href="javascript:;" class="name-link">{$vo.member_truename}</a>
                </div>
                <div class="info-text">
                    <a href="javascript:;" class="link"></a>
                    <div class="text">{$vo.theme_name}</div>
                </div>
                <div class="info-imgs">

                </div>
                <div class="info-after">
                    <div class="date">{:format_time($str = 'm-d', $vo['create_time'])}&nbsp;&nbsp;</div>
                </div>
            </div>
        </div>
    {/volist}
    </div>
            {eq name="is_join" value="0"}
            <a href="{:url('/circle/Public/userLogin',['reback'=>get_current_url()])}" class="weui-btn weui-btn_primary">去登陆>></a>
            {/eq}
            {eq name="is_join" value="1"}
            <a href="{:url('circleApply',['circle_id'=>$circleInfo.circle_id])}" class="weui-btn weui-btn_primary">申请圈子>></a>
            {/eq}
            {eq name="is_join" value="2"}
            <a href="{:url('/circle/Theme/index',['circle_id'=>$circleInfo.circle_id])}" class="weui-btn weui-btn_primary">查看更多>></a>
            {/eq}
            {eq name="is_join" value="3"}
            <a  class="weui-btn weui-btn_disabled weui-btn_primary">正在申请中，请等待管理员操作</a>
            {/eq}
</div>
{/block}
{block name='js'}
{/block}